<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="/commons/taglibs.jsp" %>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<title>用户操作日志</title>

	<%@ include file="/commons/css_js_head.jsp" %>
	
<script type="text/javascript">
//复写Url
doListUrl = "${ctx }/permission/operationLogAction!doList.ts";
doAddBeforeUrl = "${ctx }/permission/operationLogAction!doSave.ts";
		
//添加之前
function doAddBefore(){
   var _form = document.forms[0];
   if(doAddBeforeUrl == ''){
   	alert('请设置正确的URL!');
   	return false;
   }

   _form.action = doAddBeforeUrl;
   _form.submit();
}

//删除
function doDel(){
   var _form = document.forms[0];
   if(doDelUrl == ''){
   	alert('请设置正确的URL!');
   	return false;
   }

   _form.action = doDelUrl;
   _form.submit();
}
</script>
	
</head>

<body style="overflow-x:hidden">

<!-- 标题 -->
<div class="mTitle">
  <span class="hidsearch"><a href="javascript:void(0)" onClick="return chg('searchList');" id="ImgArrow">
  	<img src="${ctx}/images/icon_up.gif" id ="imgButton" /></a>
  </span>
  <b class="bbig">用户操作日志</b>
  <!-- <a href="javascript:void(0)" onclick="javascript:doAddBefore();">添加操作日志</a>  -->
</div>

<!-- 查询条件 -->
<div class="searchBar" id="searchList" style="display:block;">
<s:form action="/permission/operationLogAction!doList.ts" id="form1" method="post">
  <table class="searchTable">
	  <tr>
		<th>模块：</th>
	    <td>
	    	<select name="dicModel">
	    		<ef:option groupname="DicModel" selectedValue="${dicModel}" flag="true" link="true"></ef:option>
	    	</select>
	    </td>
	    <th>操作人：</th>
	    <td>
	    	<s:textfield name="userName" theme="simple"></s:textfield>
	    </td>
		<th>操作时间：</th>
	    <td>
		    <s:textfield name="operationDateStart" cssClass="Wdate" size="12" onfocus="WdatePicker({el:'operationDateStart'})" readonly="true" theme="simple" />
		    <i>至</i>
		    <s:textfield name="operationDateEnd" cssClass="Wdate" size="12" onfocus="WdatePicker({el:'operationDateEnd'})" readonly="true" theme="simple" />
	    </td>
	    <td>
	    	<input name="btn_query" type="button" class="btn" value="查询" onclick="doQuery()" />
	    </td>
	  </tr>
	  <tr>
		<th>功能：</th>
	    <td>
	    	<select name="dicFunCode">
	    		<ef:option groupname="DicFunCode" selectedValue="${dicFunCode}" flag="true" link="true"></ef:option>
	    	</select>
	    </td>
	    <th>动作：</th>
	    <td>
	    	<select name="operationCode">
	    		<ef:option groupname="DicOperationCode" selectedValue="${operationCode}" flag="true" link="true"></ef:option>
	    	</select>
	    </td>
		<th>内容：</th>
	    <td>
	    	<s:textfield name="content" theme="simple"></s:textfield>
	    </td>
	    <td>
	    	<input name="btn_reset" type="button" class="btn" value="清空查询条件" onclick="doReset()" />
	    </td>
	  </tr>
  </table>
</s:form>
</div>

<!-- start 显示内容 -->
<aa:zone name="zoneList">
<div class="mainList">

<table class="listTable">
  <tr>
    <th width="20%">日志ID</th>
    <th width="10%">模块</th>
    <th width="5%">功能</th>
    <th width="5%">动作</th>
    <th width="10%">内容</th>
    <th width="10%">操作人</th>
    <th width="12%">操作时间</th>
    <th>备注</th>
  </tr>

	<c:forEach var="operationLog" items="${pager.data}">
		<tr>
		    <td align="center">
		    	${operationLog.operatorId}
		    </td>
		    <td align="center">
		    	<ef:CodeToName groupname="DicModel" translateValue="${operationLog.dicModel}" />
		    </td>
		    <td align="center">
		    	<ef:CodeToName groupname="DicFunCode" translateValue="${operationLog.dicFunCode}" />
		    </td>
		    <td align="center">
		    	<ef:CodeToName groupname="DicOperationCode" translateValue="${operationLog.operationCode}" />
		    </td>
		    <td align="center">
		    	${operationLog.content}
		    </td>
		    <td align="center">
		    	${operationLog.efUser.userName}
		    </td>
		    <td align="center">
		    	<fmt:formatDate value="${operationLog.operationDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
		    </td>
		    <td align="center">
		    	${operationLog.remark}
		    </td>
	    </tr>
	</c:forEach>
	
<!-- pager footer end -->
</table>
</div>
<!-- end 显示内容 -->

<!-- 分页区域  -->
<%@ include file="/page/pager.jsp"%>
</aa:zone>

<script type="text/javascript">
ajaxAnywhere.formName = "form1";
ajaxAnywhere.getZonesToReload = function() {
    return "zoneList";
}
</script>


</body>
</html>

